#ifndef _XARRAY_H
#define _XARRAY_H

typedef struct {
    void *data;

    size_t se;  // size of an element
    size_t ne;  // number of element
    size_t nae; // number of allocated element
} sDA;

void    da_init (sDA *a, size_t ne, size_t se);
size_t  da_add  (sDA *a, void *e);
void    da_trim (sDA *a);
void    da_free (sDA *a);

#endif

